package com.dldata.devtools30.entity;

import jakarta.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "devt_model_metadata_table" )
public class DevtModelMetadataTableEntity {
    private String id;
    private String name;
    private String code;
    private String viewcode;
    private String bz;
    private String typeId;
    private String modeltype;
    private String storetype;
    private Integer xh;
    
    @Basic
    @Column(name = "viewcode", nullable = true, insertable = true, updatable = true, length = 255)
    public String getViewcode() {
        return viewcode;
    }
    
    public void setViewcode(String viewcode) {
        this.viewcode = viewcode;
    }
    
    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name", nullable = true, insertable = true, updatable = true, length = 255)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Basic
    @Column(name = "code", nullable = true, insertable = true, updatable = true, length = 64)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "bz", nullable = true, insertable = true, updatable = true, length = 1024)
    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    @Basic
    @Column(name = "type_id", nullable = true, insertable = true, updatable = true, length = 64)
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    @Basic
    @Column(name = "xh", nullable = true, insertable = true, updatable = true)
    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Basic
    @Column(name = "modeltype", nullable = true, insertable = true, updatable = true)
    public String getModeltype() {
        return modeltype;
    }
    
    public void setModeltype(String modeltype) {
        this.modeltype = modeltype;
    }
    
    @Basic
    @Column(name = "storetype", nullable = true, insertable = true, updatable = true)
    public String getStoretype() {
        return storetype;
    }
    
    public void setStoretype(String storetype) {
        this.storetype = storetype;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtModelMetadataTableEntity that = (DevtModelMetadataTableEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(code, that.code) &&
                Objects.equals(bz, that.bz) &&
                Objects.equals(modeltype, that.modeltype) &&
                Objects.equals(storetype, that.storetype) &&
                Objects.equals(typeId, that.typeId) &&
                Objects.equals(xh, that.xh);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, code, bz, typeId, xh,modeltype,storetype);
    }
}
